x86: Pull dynamic memory allocation out of do_boot_cpu().
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 18 May 2010 14:05:54 +0000 (15:05 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 18 May 2010 14:05:54 +0000 (15:05 +0100)
commitc12bbde846af61d1b8441da6c627181ccbc7a157
tree7b8a9e3598e5ad236745f0eca8379530ca88f792
parent852ed0aaf07ad074ac111b1a432de5b816aad7fd
x86: Pull dynamic memory allocation out of do_boot_cpu().

This has two advantages:
 (a) We can move the allocations to a context where we can handle
     failure.
 (b) We can implement matching deallocations on CPU offline.

Only the idle vcpu structure is now not freed on CPU offline. This
probably does not really matter.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/domain.c
xen/arch/x86/mm.c
xen/arch/x86/smpboot.c
xen/arch/x86/x86_32/traps.c
xen/arch/x86/x86_64/mm.c
xen/common/cpu.c
xen/include/asm-x86/desc.h
xen/include/asm-x86/mm.h
xen/include/asm-x86/smp.h
xen/include/asm-x86/x86_64/uaccess.h